package br.unirio.brasileirao.action;

import java.util.List;

import br.unirio.brasileirao.dao.DAOFactory;
import br.unirio.brasileirao.model.Time;

import com.opensymphony.xwork2.ActionSupport;

public class TimeAction extends ActionSupport
{
	private static final long serialVersionUID = -3914001271443485052L;
	List<Time> arrTimes;

	/*-------------------------- ACTIONS -----------------------------------*/
	public String mostrarTimes() throws Exception
	{
		arrTimes = DAOFactory.getTimeDao().listar();
		return SUCCESS;
	}

	/*-------------------------- GETTERS E SETTERS -------------------------*/
	public List<Time> getArrTimes() {
		return arrTimes;
	}

	public void setArrTimes(List<Time> arrTimes) {
		this.arrTimes = arrTimes;
	}
}
